﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Calculator.ConsoleCalc.ExtendedCalc
{
	class ExtParser: Parser
	{
		public ExtParser()
			:base()
		{
			base._supportedFunction = base._supportedFunction.Concat(new List<string>() { "^" }).ToArray();
			base._operations.Add("^",FunctionType.Involution);

			foreach (var key in _priorityOperations.Keys.ToList())
			{
				if (base._priorityOperations[key] > 0)
					base._priorityOperations[key] += 1;
			}

			base._priorityOperations.Add("^", 1);
		}
	}
}
